package com.minzheng.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.minzheng.blog.dto.*;
import com.minzheng.blog.entity.Movie;
import com.minzheng.blog.vo.*;

import java.util.List;

/**
 * 电影服务
 *
 * @author silencezheng
 * @date 2022/07/29
 */
public interface MovieService extends IService<Movie> {

    /**
     * 查询电影
     *
     * @return 电影
     */
    PageResult<MovieDTO> listMovies(ConditionVO condition);

    void deleteMovies(List<Integer> movieIdList);

    void saveOrUpdateMovie(MovieVO movieVO);

    Movie listMovieById(Integer id);

    void toRate(Integer id, Integer userRate);
}
